package com.ruoyi.ewem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.ewem.domain.Product;
import com.ruoyi.ewem.service.ProductService;
import com.ruoyi.ewem.mapper.ProductMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 21037
* @description 针对表【ewem_product(作物表)】的数据库操作Service实现
* @createDate 2024-07-27 08:51:53
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{

    @Override
    public List<Product> getList(Product product) {
        return baseMapper.getList(product);
    }

    @Override
    public void delProductById(Integer productId) {
        baseMapper.delProductById(productId);
    }

    @Override
    public List<Product> getNum() {
        return baseMapper.getNum();
    }
    @Override
    public Product getByIds(Integer productId) {
        return baseMapper.getByIds(productId);
    }

    @Override
    public List<Product> selectList(String batchNum) {
        return baseMapper.selectLists(batchNum);
    }
}




